
Page({

  data: {
     goods_id:'',near_id:''
  },

  onLoad: function (options) {
    if(options.goods_id){

    
       this.setData({
         goods_id:options.goods_id,
         near_id:options.near_id
       })}
  },
  wechattwocanvas(){
    wx.navigateTo({
      url: '/pages/edit12/edit12?type=1'+'&goods_id='+this.data.goods_id+'&near_id='+this.data.near_id,
    })
  },
  mobiletwocanvas(){
    wx.navigateTo({
      url: '/pages/edit12/edit12?type=2'+'&goods_id='+this.data.goods_id+'&near_id='+this.data.near_id,
    })
  },
  wechatfourcanvas(){
    wx.navigateTo({
      url: '/pages/edit12/edit12?type=3'+'&goods_id='+this.data.goods_id+'&near_id='+this.data.near_id,
    })
  },
  mobilefourcanvas(){
    wx.navigateTo({
      url: '/pages/edit12/edit12?type=4'+'&goods_id='+this.data.goods_id+'&near_id='+this.data.near_id,
    })
  },
  
})